﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MWRCommunicationLibrary.ARS408
{
    public class Out_CollDetState : MWRData
    {
        public override int DefaultCanID
        {
            get
            {
                return 0x408;
            }
        }

        public override int Length
        {
            get
            {
                return 4;
            }
        }

        [ParamDecodor(1, 1)]
        public bool Activation { get; set; }

        [ParamDecodor(4, 4)]
        public int NofRegions { get; set; }

        [ParamDecodor(8, 8, 0.1, 0)]
        public double MinDetectTime { get; set; }

        /// <summary>
        /// Measurement cycle counter (counting up since startup of 
        /// sensor and restarting at 0 when > 65535)
        /// </summary>
        [ParamDecodor(24, 16)]
        public int MeasCounter { get; set; }
    }
}
